//封装home相关的接口函数

import request from '@/utils/request'

export const getBannerService = (params = {}) => {
    //默认首页为1，商品为2
    const {distributionSite = '1'} = params
    return request({
        url: '/home/banner',
        method: 'GET',
        params: {
            distributionSite
        }
    })
}

export const getGoodsService = () => {
    return request({
        url: '/home/goods',
        method: 'GET'
    })
}